<template>
  <div>
    <h3>About</h3>
    <h3>count属性的值:{{ getCount }}</h3>
    <input type="button" value="add(2)" @click="add(2)" />
  </div>
</template>

<script>
import { mapActions, mapGetters } from 'vuex'

export default {
  name: 'About',
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['getCount']),
  },
  methods: {
    ...mapActions(['add']),
  },
}
</script>

<style lang="scss" scoped>
h3 {
  color: blue;
}
</style>
